<%@page contentType="text/html" import="java.sql.*"%>
<%@page pageEncoding="UTF-8"%>
<jsp:useBean id="userProfile" class="com.asaga.tools.SystemClient_DBImpl" scope="session" />
<jsp:useBean id="event" class="com.asaga.tools.Event_DBImpl" scope="session" />
<% String eventID = request.getParameter("action");
   ResultSet peepEvent = event.getEventById(Integer.parseInt(eventID));
   peepEvent.next();
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>

    <h2><%=peepEvent.getString("event_title")%></h2>
    
    <p>Description:  <br><%=peepEvent.getString("description")%></p>
    <p>Date:  <br><%=event.revertDate(peepEvent.getDate("startDate"))%></p>
    <p>Time:  <br><%=event.revertTime(peepEvent.getTime("startTime"))%> - <%=event.revertTime(peepEvent.getTime("endTime"))%></p>
    <p>Location:  <br><%=peepEvent.getString("location_title")%><br>
    <%=peepEvent.getString("city")%>, <%=peepEvent.getString("state")%></p>
    
    </body>
</html>
